import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http";
export type userListItemLimit = {
    name: string,
    phone: string,
    birth?: string,
    IDNumber?: string,
    address?: string,
    remark?: string,
    password: string,
    groupId?: string,
    state?: string,
    type?: string,
    gradeId?: string,
    tagIds?: Array<string>,
    sale_disabled?: number,
    sale_auth?: number,
}

export function addUserListApi(data: object) {
    return httpPost('/user/add', data);
}
export function getUserListApi(data?: object) {
    return httpPost('/user/find', data);
}
export function updateUserListApi(data: object) {
    return httpPut('/user/update', data);
}
export function deleteUserListApi(data: object) {
    return httpDelete('/user/remove', data);
}
export function getUserListByIdApi(data: object) {
    return httpGet('/user/getById', data);
}